﻿capital = 885
2000.1.1 = {
	set_variable = { currency_strength = 0.75 }
	set_cosmetic_tag = BRA
	set_country_flag = antarctica_ccas_member
	set_country_flag = antarctica_ccamlr_member
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag
	set_country_flag = generic_election_killswitch
	set_country_flag = is_getting_esco_subsidies
	add_to_array = { global.unesco_recipients = THIS }
	set_country_flag = is_getting_cdf_subsidies
	add_to_array = { global.uncdf_recipients = THIS }
	add_dynamic_modifier = { modifier = un_aid_subsidies_modifier }

	complete_special_project = sp:sp_aircraft_project
	complete_special_project = sp:sp_space_program
	complete_special_project = sp:sp_helicopter_project
	complete_special_project = sp:sp_composite_production
	complete_special_project = sp:sp_naval_vessel_project
	complete_special_project = sp:sp_nuclear_energy
	complete_special_project = sp:sp_awacs_project

	set_technology = {
		nuclear_technology = 1
		reactor1 = 1
		reactor2 = 1
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1
		combined_arms = 1
		night_vision_1 = 1
		Anti_tank_0 = 1
		AT_upgrade_1 = 1
		infantry_weapons_1 = 1
		infantry_weapons_2 = 1
		infantry_weapons_3 = 1
		infantry_weapons_4 = 1
		support_weapons = 1
		squad_automatic_weapon = 1
		special_forces_tech_1 = 1
		cnc_equipment_1 = 1
		combat_eng_equipment = 1
		Heavy_Anti_tank_0 = 1
		util_vehicle_1 = 1
		util_vehicle_2 = 1
		util_vehicle_3 = 1
		body_armor_1 = 1
		camouflage_1 = 1
		camouflage_2 = 1
		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1
		radar = 1
		fuel_silos = 1
		internet1 = 1
		internet2 = 1
		nanofibers_1 = 1
		nanofibers_2 = 1
		printing_1 = 1
		printing_2 = 1
		genetics_1 = 1
		fuel_refining = 1
		early_renewables = 1
		renewables = 1
		electrification_1 = 1
		construction1 = 1
		stronghold_building_1 = 1
		land_fort_building_1 = 1
		construction2 = 1
		COMSAT1 = 1
		COMSAT2 = 1
		COMSAT3 = 1
		COMSAT4 = 1
		SPYSAT1 = 1
		SPYSAT2 = 1
		SPYSAT3 = 1
		SPYSAT4 = 1
		OLV1 = 1

		corvette_hull_1 = 1
		corvette_hull_2 = 1

		frigate_hull_1 = 1
		frigate_hull_2 = 1
		frigate_hull_3 = 1

		destroyer_hull_1 = 1
		destroyer_hull_2 = 1

		cruiser_hull_1 = 1

		helicopter_operator_hull_1 = 1

		carrier_hull_1 = 1

		attack_submarine_hull_1 = 1
		attack_submarine_hull_2 = 1
		attack_submarine_hull_3 = 1

		aircraft_carrier_engineering = 1
		aircraft_heli_engineering_1 = 1

		tech_submarine_engineering_1 = 1

		tech_naval_systems_engineering = 1
		tech_power_systems_1 = 1
		tech_power_systems_2 = 1
		tech_diesel_power_systems_1 = 1

		tech_combat_support_systems = 1
		tech_fire_control_1 = 1
		tech_fire_control_2 = 1
		tech_combat_radar_1 = 1
		tech_combat_radar_2 = 1
		tech_combat_sonar_1 = 1
		tech_combat_sonar_2 = 1

		tech_early_naval_weapon_systems = 1
		tech_naval_weapon_systems = 1
		tech_light_guns_1 = 1
		tech_light_guns_2 = 1

		tech_point_defense_chain_gun = 1
		tech_point_defense_system_1 = 1
		tech_point_defense_system_2 = 1

		tech_turret_missiles_surface_1 = 1
		tech_turret_missiles_surface_2 = 1

		tech_turret_missiles_aa_1 = 1
		tech_turret_missiles_aa_2 = 1

		tech_vls_surface_1 = 1
		tech_vls_surface_2 = 1

		tech_vls_aa_1 = 1
		tech_vls_aa_2 = 1

		tech_torpedoes_1 = 1
		tech_torpedoes_2 = 1

		tech_landing_craft_1 = 1
	}

	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = {
			decryption1 = 1
			encryption1 = 1
		}
	}
	complete_special_project = sp:sp_armoured_vehicle_project
	if = { limit = { has_dlc = "No Step Back" }

		set_oob = "BRA_2000_nsb"
		set_technology = {
			nsb_transport_helicopter_1 = 1
			mbt_tech_ops = 1
			mbt_tech = 1
			tank_ammo_1 = 1
			defensive_systems = 1
			nsb_gun_technology_1 = 1
			nsb_artillery_ammo_1 = 1
			nsb_special_ammo_0 = 1
			nsb_AA_autocannon_0 = 1
			nsb_SHORAD_missile_0 = 1
			mbt_tech_1 = 1
			defensive_systems_2 = 1
			nsb_gun_technology_2 = 1
			nsb_artillery_ammo_2 = 1
			nsb_special_ammo_1 = 1
			nsb_AA_autocannon_1 = 1
			nsb_SHORAD_missile_1 = 1
			tank_components_tech = 1
			tank_components_tech_2 = 1
			small_medium_gun_tech = 1
			small_medium_gun_tech_2 = 1
			medium_gun_tech = 1
			medium_gun_tech_2 = 1
			armor_tech = 1
			armor_tech_2 = 1
			era_tech = 1
			era_tech_2 = 1
			diesel_engine_tech = 1
			diesel_engine_tech_2 = 1
			diesel_engine_tech_3 = 1
			turbine_engine_tech = 1
			turbine_engine_tech_2 = 1
			nsb_artillery_0 = 1
			nsb_Arty_upgrade_1 = 1
			nsb_Anti_Air_0 = 1
			helo_ops_tech = 1
			nsb_attack_helicopter_tech_1 = 1
			nsb_engine_tech_1 = 1
			nsb_atgm_tech_1 = 1
			nsb_multiple_atgm_tech_1 = 1
			nsb_heavy_atgm_tech_1 = 1
			nsb_rocket_pods_tech_1 = 1
			nsb_gun_pods_tech_1 = 1
			nsb_light_nose_gun_tech_1 = 1
			nsb_defense_tech_1 = 1
			nsb_attack_helicopter_tech_2 = 1
			nsb_engine_tech_2 = 1
			nsb_atgm_tech_2 = 1
			nsb_multiple_atgm_tech_2 = 1
			nsb_heavy_atgm_tech_2 = 1
			nsb_rocket_pods_tech_2 = 1
			nsb_gun_pods_tech_2 = 1
			nsb_light_nose_gun_tech_2 = 1
			nsb_special_ammo_2 = 1
			nsb_artillery_ammo_3 = 1
		}

		create_equipment_variant = {
			name = "Osorio"
			type = medium_tank_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = tank_medium_cannon
				ammunition_load_slot = mixed_main_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_pneumatic_suspension_medium
				armor_type_slot = tank_composite_armor_gen1
				engine_type_slot = tank_diesel_engine_gen3
				reload_type_slot = manual_loading
				special_type_slot_1 = empty
				special_type_slot_2 = smoke_launchers
				special_type_slot_4 = tank_battlestation_2
				special_type_slot_6 = spaced_armor_gen2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 3
			}
			obsolete = yes
		}

		create_equipment_variant = {
			name = "EE-11 Urutu"
			type = medium_tank_amphibious_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun
				reload_type_slot = automatic_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_no_turret
				suspension_type_slot = tank_torsion_bar_suspension_medium
				engine_type_slot = tank_diesel_engine_gen2
				armor_type_slot = tank_steel_armor_gen1
				special_type_slot_2 = afv_mine_protection
				special_type_slot_1 = afv_troop_capacity
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 1
			}
			obsolete = yes
			icon = "gfx/interface/technologies/BRA/LAND/APC1.dds"
		}
		add_equipment_to_stockpile = {
			type = medium_tank_amphibious_chassis_1
			variant_name = "E-11 Urutu"
			amount = 219
			producer = BRA
		}

		create_equipment_variant = {
			name = "Astros II"
			type = medium_tank_rocket_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = art_med_rocket_gen2
				turret_type_slot = tank_base_tank_turret
				reload_type_slot = eight_missile_pack
				ammunition_load_slot = artillery_medium_ammo_2
				suspension_type_slot = tank_wheeled_suspension_medium
				engine_type_slot = afv_gasoline_engine_gen3
				special_type_slot_1 = mine_ammo_2
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_fire_upgrade = 3
			}
			obsolete = yes
			icon = "gfx/interface/technologies/BRA/LAND/SPR2.dds"
		}
		add_equipment_to_stockpile = {
			type = medium_tank_rocket_chassis_1
			variant_name = "Astros II"
			amount = 16
			producer = BRA
		}

		create_equipment_variant = {
			name = "AS550 Esquilo II"
			 type = heavy_tank_chassis_1
			 parent_version = 0
			modules = {
				chassis_type_slot = helicopter_light_chassis
				helicopter_body_layout = light_gunship_layout
				helicopter_body_mount_1 = helicopter_gun_pod_gen2
				 nose_gun_type_slot = helicopter_medium_nose_gun_gen1
				 engine_type_slot = helicopter_turbine_engine_gen2
				 defence_type_slot = flare_launchers
				 sensor_and_avionics_slot = sensors_and_avionics_gen_2
				 helicopter_body_mount_2 = helicopter_rocket_pod_gen2
			}
			 upgrades = {
				 helicopter_nsb_upgrade = 0
			 }
			 icon = "gfx/interface/technologies/FRA/AIR/UH2_alt2.dds"
		}

		create_equipment_variant = {
			name = "EE-9 Cascavel"
			type = medium_tank_destroyer_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = tank_small_cannon_2
				ammunition_load_slot = mixed_main_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				engine_type_slot = tank_diesel_engine_gen3
				armor_type_slot = afv_alum_armor_gen1
				reload_type_slot = manual_loading
				secondary_armament_slot = empty
				special_type_slot_1 = empty
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = tank_longer_gun
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 0
			}
			icon = "gfx/interface/technologies/BRA/LAND/REC2.dds"
		}

		else = {
			set_oob = "BRA_2000_nonnsb"
			set_technology = {
				MBT_1 = 1
				MBT_2 = 1
				MBT_3 = 1
				Early_APC = 1
				APC_1 = 1
				APC_2 = 1
				APC_3 = 1
				APC_4 = 1
				IFV_1 = 1
				tech_arty_0 = 1
				SP_arty_0 = 1
				Arty_upgrade_1 = 1
				SP_R_arty_0 = 1
				SP_Anti_Air_0 = 1
				SP_Anti_Air_1 = 1
				Anti_Air_0 = 1
				AA_upgrade_1 = 1
				Rec_tank_0 = 1
				attack_helicopter_1 = 1
				attack_helicopter_2 = 1
				transport_helicopter_1 = 1
			}
		}
	}
	if = { limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "BRA_2000_bba"
		set_technology = {
			early_airframe_designs = 1
			gen_3_light = 1
			gen_4_light = 1
			gen_3_medium = 1
			gen_3_large = 1
			gen_4_large = 1

			flying_wing_design = 1
			variable_wing_design = 1

			engines_2 = 1
			engines_3 = 1

			refueling_1 = 1
			redundant_1 = 1

			early_weapons = 1
			air_weapons_1 = 1
			air_weapons_2 = 1

			awacs_1 = 1

			countermeasures_2 = 1
			countermeasures_1 = 1

			ag_weapons_1 = 1
			ag_weapons_2 = 1
			avionics_1 = 1
			avionics_2 = 1

			naval_weapons_1 = 1
			naval_weapons_2 = 1
			special_mad_1 = 1

			tgp_recon_1 = 1
			tgp_recon_2 = 1

		}

		create_equipment_variant = {
			name = "Embraer EMB-312 Tucano"
			type = small_plane_strike_airframe_1
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_mp_med_hardpoint_1
				fixed_gun_slot = weap_multi_gun_1
				engine_type_slot = engine_prop_single_1
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_straight
				special_slot_type_1 = spec_countermeasures_1
				special_slot_type_2 = spec_redundant_1
			}
			obsolete = yes
			icon = "gfx/interface/technologies/BRA/AIR/Tucano.dds"
		}

		create_equipment_variant = {
			name = "Embraer EMB-314 Super Tucano"
			type = small_plane_strike_airframe_2
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_mp_med_hardpoint_2
				fixed_gun_slot = weap_multi_gun_1
				engine_type_slot = engine_prop_single_2
				avionics_type_slot = avionics_manned_2
				wingform_type_slot = wing_straight
				special_slot_type_1 = spec_countermeasures_2
				special_slot_type_2 = spec_redundant_2
				special_slot_type_3 = spec_protection_1
			}
			icon = "gfx/interface/technologies/BRA/AIR/Super_Tucano.dds"
		}

		### Brazil-specific variant of Aermacchi MB-326
		create_equipment_variant = {
			name = "Embraer EMB-326"
			type = small_plane_strike_airframe_1
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_mp_med_hardpoint_2
				fixed_gun_slot = weap_multi_gun_1
				engine_type_slot = engine_light_single_1
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_straight
				special_slot_type_1 = spec_countermeasures_1
			}
			icon = "gfx/interface/technologies/BRA/AIR/326.dds"
			obsolete = yes
		}

		### Brazil-built AMX International
		create_equipment_variant = {
			name = "AMX A-1"
			type = small_plane_strike_airframe_2
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_mp_med_hardpoint_2
				fixed_gun_slot = weap_multi_gun_1
				engine_type_slot = engine_light_single_2
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_swept
				special_slot_type_1 = spec_countermeasures_2
			}
			icon = "gfx/interface/technologies/BRA/AIR/AMX.dds"
		}

		create_equipment_variant = {
			name = "EMB 110 Bandeirante" #C-95
			type = large_plane_air_transport_airframe_1
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_buff_transport
				fixed_gun_slot = empty
				engine_type_slot = engine_prop_double_2
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_swept
				special_slot_type_1 = empty
				special_slot_type_2 = empty
				fixed_auxiliary_weapon_slot_1 = empty
			}
			obsolete = yes
			icon = "gfx/interface/technologies/BRA/AIR/110.dds"
		}

		create_equipment_variant = { #ASW/ASuW Medium
			name = "EMB 111A Patrulha"
			type = medium_plane_maritime_patrol_airframe_1
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_as_hardpoint_1
				fixed_gun_slot = empty
				engine_type_slot = engine_prop_double_2
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_swept
				special_slot_type_1 = empty
				special_slot_type_2 = empty
				fixed_auxiliary_weapon_slot_1 = weap_as_hardpoint_1
			}
			obsolete = yes
			icon = "gfx/interface/technologies/BRA/AIR/111.dds"
		}
		create_equipment_variant = {
			name = "EMB 145 AEWC"
			type = large_plane_awacs_airframe_2
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_buff_awacs_1
				fixed_gun_slot = empty
				engine_type_slot = engine_jet_double_2
				avionics_type_slot = avionics_manned_2
				wingform_type_slot = wing_swept
				special_slot_type_1 = spec_countermeasures_1
				special_slot_type_2 = spec_redundant_2
				fixed_auxiliary_weapon_slot_1 = empty
			}
			icon = "gfx/interface/technologies/BRA/AIR/145_AEWC.dds"
		}
		create_equipment_variant = { #ASW/ASuW Medium
			name = "EMB 145 MP"
			type = large_plane_maritime_patrol_airframe_2
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_as_hardpoint_1
				fixed_gun_slot = empty
				engine_type_slot = engine_jet_double_2
				avionics_type_slot = avionics_manned_2
				wingform_type_slot = wing_swept
				special_slot_type_1 = spec_countermeasures_1
				special_slot_type_2 = empty
				fixed_auxiliary_weapon_slot_1 = weap_as_hardpoint_1
			}
			obsolete = yes
			icon = "gfx/interface/technologies/BRA/AIR/145.dds"
		}
		else = {
			set_air_oob = "BRA_2000_nonbba"
			set_technology = {
				early_fighter = 1
				Strike_fighter1 = 1
				L_Strike_fighter1 = 1
				L_Strike_fighter2 = 1

				#KC-390
				early_bomber = 1
				transport_plane1 = 1
			}
		}
	}
	complete_special_project = sp:sp_missile_project
	if = { limit = { has_dlc = "Gotterdammerung" }
		set_technology = {
			ballistic_missile = 1

			IRBM = 1

			cruise_missile = 1

			GLCM = 1
			GLCM1 = 1
			GLCM2 = 1

			TEL_launched_missiles = 1
			TEL_3 = 1
			TEL_4 = 1

			air_defense = 1

			SAM = 1
			SAM0 = 1
			SAM1 = 1

			hid_tech_missile_1 = 1
			hid_tech_missile_2 = 1
			hid_tech_missile_3 = 1
			hid_tech_missile_4 = 1
			hid_tech_missile_5 = 1
			hid_tech_missile_6 = 1
		}


		set_variable = { num_launchers_set = 6 }
	}
	set_naval_oob = "BRA_2000_naval_mtg"
	#Colossus Class https://en.wikipedia.org/wiki/Brazilian_aircraft_carrier_Minas_Gerais
	create_equipment_variant = {
		name = "Colossus Class"
		type = carrier_hull_1
		name_group = BRA_CV_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_surface_oil_power
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_1
			fixed_ship_auxillary_slot_2 = module_chain_gun
			fixed_ship_auxillary_slot_1 = module_naval_missile_mount_quad
			fixed_ship_auxillary_slot = module_naval_missile_mount_quad
			fixed_ship_flight_deck = module_flight_deck_1
			front_1_custom_slot = module_naval_missile_mount_quad
			mid_1_custom_slot = module_helipads_1
			mid_2_custom_slot = module_helipads_1
			mid_3_custom_slot = module_fuel_tank
			rear_1_custom_slot = module_naval_missile_mount_quad
			rear_2_custom_slot = module_fuel_tank
			fixed_ship_missile_ammo_slot = module_naval_ammo_air_defense_1
		}
	}
	#Niterói Class https://sv.wikipedia.org/wiki/Niteroi-klass
	create_equipment_variant = {
		name = "Niterói Class"
		type = frigate_hull_2
		name_group = BRA_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_jet_turbine_power
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_sonar_2
			fixed_ship_auxillary_slot_2 = module_naval_missile_mount_quad
			fixed_ship_auxillary_slot_1 = module_naval_missile_mount_quad
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_naval_missile_mount_quad
			rear_1_custom_slot = module_light_helipad_1
			fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_2
		}
	}
	#Imperial Marinheiro Class https://pt.wikipedia.org/wiki/Classe_Imperial_Marinheiro
	create_equipment_variant = {
		name = "Imperial Marinheiro Class"
		type = corvette_hull_1
		name_group = BRA_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_1
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_1
			front_1_custom_slot = module_chain_gun
		}
	}
	#Inhaúma Class https://en.wikipedia.org/wiki/Inha%C3%BAma-class_corvette
	create_equipment_variant = {
		name = "Inhaúma Class"
		type = corvette_hull_2
		name_group = BRA_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_jet_turbine_power
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_naval_missile_mount_quad
			fixed_ship_missile_ammo_slot = module_naval_ammo_anti_ship_2
		}
	}
	#Inhaúma Class https://en.wikipedia.org/wiki/Inha%C3%BAma-class_corvette
	create_equipment_variant = {
		name = "Inhaúma Class - Barroso Subclass"
		type = corvette_hull_2
		name_group = BRA_DD_HISTORICAL
		parent_version = 1
		modules = {
			fixed_ship_engine_slot = module_light_surface_jet_turbine_power
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_naval_vls_cells_8
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_torpedoes_2
		}
	}
	#Bracui Class https://en.wikipedia.org/wiki/River-class_minesweeper
	create_equipment_variant = {
		name = "Bracui Class"
		type = corvette_hull_2
		name_group = BRA_DD_HISTORICAL
		parent_version = 2
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_naval_vls_cells_8
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_chain_gun
		}
		icon = "gfx/interface/technologies/BRA/NAV/CRV2_River.dds"
	}
	#Type 209 Class https://en.wikipedia.org/wiki/List_of_ships_of_the_Brazilian_Navy
	create_equipment_variant = {
		name = "Type 209 Class"
		type = attack_submarine_hull_2
		name_group = BRA_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_sub_diesel_electric_power
			fixed_ship_radar_slot = module_sonar_2
			fixed_ship_auxillary_slot_2 = module_fuel_tank
			fixed_ship_auxillary_slot_1 = module_torpedoes_2
			fixed_ship_auxillary_slot = module_naval_sub_vls_cells_8
			fixed_ship_battery_slot = module_anti_ship_torpedoes_2
			fixed_ship_missile_ammo_slot = module_naval_sub_ammo_anti_ship_1
		}
	}

	add_ideas = {
		wto_member
		partially_nationalized_healthcare
		balanced_protections
		standard_maintenance
		us_dollar
		strong_regulations

		recession
		corruption_level_07
		farmers
		labour_unions
		small_medium_business_owners

		bureau_03
		defence_01
		police_02
		edu_03
		health_02
		social_03

		export_economy
		volunteer_army
		volunteer_women
		officer_military_school
		nuclear_energy

		#Other
		christian
		BRA_idea_brazilian_knack
		BRA_idea_oncoming_debt_crisis
		BRA_idea_enraged_natives
		BRA_idea_crippled_currency_one
		at_member
		un_aid_esco_member

		un_aid_cdf_member

		antarctica_small_treaty_admin_cost_2
		no_currency_backing
	}
	add_to_array = { global.un_aid_esco_contributor = THIS }
	add_to_array = { global.un_aid_cdf_contributor = THIS }

	add_dynamic_modifier = { modifier = mercosur_member_state_modifier }
	add_to_array = { global.mercosur_member_state = THIS }
	set_variable = { mercosur_member_state_productivity_growth_modifier = 0.03 }
	set_variable = { mercosur_member_state_tax_gain_multiplier_modifier = 0.03 }
	set_variable = { mercosur_member_state_foreign_influence_modifier = 0.04 }


	add_opinion_modifier = { target = ARG modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = ARG modifier = large_commercial_relations }
	add_opinion_modifier = { target = CHL modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = CHL modifier = large_commercial_relations }
	add_opinion_modifier = { target = MEX modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = MEX modifier = large_commercial_relations }
	add_opinion_modifier = { target = GER modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = GER modifier = large_commercial_relations }

	add_opinion_modifier = { target = AGL modifier = portuguese_speaking }
	reverse_add_opinion_modifier = { target = AGL modifier = portuguese_speaking }
	add_opinion_modifier = { target = MOZ modifier = portuguese_speaking }
	reverse_add_opinion_modifier = { target = MOZ modifier = portuguese_speaking }
	add_opinion_modifier = { target = GUB modifier = portuguese_speaking }
	reverse_add_opinion_modifier = { target = GUB modifier = portuguese_speaking }
	add_opinion_modifier = { target = VER modifier = portuguese_speaking }
	reverse_add_opinion_modifier = { target = VER modifier = portuguese_speaking }
	add_opinion_modifier = { target = SAO modifier = portuguese_speaking }
	reverse_add_opinion_modifier = { target = SAO modifier = portuguese_speaking }

	add_opinion_modifier = { target = TAI modifier = revoked_recognize_taiwan }
	add_opinion_modifier = { target = ARG modifier = diplomatic_support }
	reverse_add_opinion_modifier = { target = ARG modifier = diplomatic_support }
	add_opinion_modifier = { target = MEX modifier = historic_friends }
	reverse_add_opinion_modifier = { target = MEX modifier = historic_friends }
	add_opinion_modifier = { target = ISR modifier = military_cooperation }
	reverse_add_opinion_modifier = { target = ISR modifier = military_cooperation }
	add_opinion_modifier = { target = SOV modifier = military_cooperation }
	reverse_add_opinion_modifier = { target = SOV modifier = military_cooperation }

	# Economy
	set_variable = { var = debt value = 1053 }
	set_variable = { var = int_investments value = 124.8 }
	set_variable = { var = treasury value = 48 }
	set_variable = { inflation_rate_var = 0.04858 }
	set_variable = { cb_policy_rate = 19 }
	set_variable = { var = corporate_tax_rate value = 34 }
	set_variable = { var = population_tax_rate value = 26 }
	set_variable = { gdp_per_capita = 11.529 }

	# Amazon Rainforest Conservation
	set_variable = { var = BRA_acres_target value = 1000 }
	set_variable = { var = BRA_acres_current value = 900 }
	set_variable = { var = BRA_acres_conserved value = 250 }
	set_variable = { var = BRA_acres_wild value = 650 }
	set_variable = { var = BRA_acre_rate_gain value = 85 }
	set_variable = { var = BRA_acre_rate_loss value = 65 }
	set_variable = { var = BRA_net_acreage value = 20 }
	set_variable = { var = BRA_acres_conserved_change value = 5 }
	BRA_calculate_amazon_system = yes

	# Brazil Unique Variables
	set_variable = { var = BRA_brazilian_party_alignment value = 50 }

	# Init Dynamic Modifier
	add_dynamic_modifier = { modifier = BRA_amazon_country_modifier }
	886 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }
	891 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }
	892 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }
	1021 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }
	1022 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }
	1023 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }
	1024 = { add_dynamic_modifier = { modifier = BRA_amazon_modifier } }

	set_variable = { overall_productivity = 591 }
	set_variable = { var_reactor_material_stockpile = 2500 }

	# Internal Faction
	set_variable = { small_medium_business_owners_opinion = 70 }
	set_variable = { labour_unions_opinion = 75 }
	set_variable = { farmers_opinion = 60 }

	# Cartel System
	set_variable = { cartel_political_influence = 15 }
	set_variable = { strength_of_cartels = 30 }

	# Investment Targets
	add_to_array = { BRA.investment_targets = ARG } # Argentina
	add_to_array = { BRA.investment_targets = CHL } # Chile
	add_to_array = { BRA.investment_targets = URG } # Uruguay
	add_to_array = { BRA.investment_targets = PAR } # Paraguay
	add_to_array = { BRA.investment_targets = ECU } # Ecuador
	add_to_array = { BRA.investment_targets = COL } # Colombia
	add_to_array = { BRA.investment_targets = SUR } # Suriname
	add_to_array = { BRA.investment_targets = GUY } # Guyana
	add_to_array = { BRA.investment_targets = SUR } # Suriname
	add_to_array = { BRA.investment_targets = BOL } # Bolivia
	add_to_array = { BRA.investment_targets = VEN } # Venezuela
	add_to_array = { BRA.investment_targets = PRU } # Peru
	add_to_array = { BRA.investment_targets = MEX } # Mexico
	add_to_array = { BRA.investment_targets = NIC } # Nicargua
	add_to_array = { BRA.investment_targets = BLZ } # Belize
	add_to_array = { BRA.investment_targets = PAN } # Panama
	add_to_array = { BRA.investment_targets = CUB } # Cuba
	add_to_array = { BRA.investment_targets = HON } # Honduras
	add_to_array = { BRA.investment_targets = ELS } # El Salvador
	add_to_array = { BRA.investment_targets = COS } # Costa Rica
	add_to_array = { BRA.investment_targets = BAH } # Bahamas
	add_to_array = { BRA.investment_targets = JAM } # Jamaica
	add_to_array = { BRA.investment_targets = DMI } # Dominicia
	add_to_array = { BRA.investment_targets = STK } # Saint Kitts
	add_to_array = { BRA.investment_targets = USA } # United States
	add_to_array = { BRA.investment_targets = CAN } # Canada
	add_to_array = { BRA.investment_targets = TRI } # Trindad
	add_to_array = { BRA.investment_targets = BAH } # The Bahamas
	add_to_array = { BRA.investment_targets = LUX } # Luxembourg



	#Influence system
	add_to_array = { BRA.influence_targets = ARG }
	add_to_array = { BRA.influence_targets = URG }
	add_to_array = { BRA.influence_targets = CHL }
	add_to_array = { BRA.influence_targets = PAR }
	add_to_array = { BRA.influence_targets = ECU }
	add_to_array = { BRA.influence_targets = COL }
	add_to_array = { BRA.influence_targets = SUR }
	add_to_array = { BRA.influence_targets = GUY }
	add_to_array = { BRA.influence_targets = VEN }
	add_to_array = { BRA.influence_targets = BOL }
	add_to_array = { BRA.influence_targets = PRU }

	init_influence = yes
	set_variable = { domestic_influence_amount = 71.17 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 12.18 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 10.15 }
	add_to_array = { influence_array = GER.id }
	add_to_array = { influence_array_val = 3.04 }
	add_to_array = { influence_array = ARG.id }
	add_to_array = { influence_array_val = 2.43 }
	add_to_array = { influence_array = NRY.id }
	add_to_array = { influence_array_val = 1.01 }
	sort_influence = yes

	set_popularities = {
		democratic = 48.4
		communism = 37.6
		fascism = 0.0
		neutrality = 13.8
		nationalist = 0.2
	}
	set_politics = {
		ruling_party = democratic
		last_election = "1998.4.10"
		election_frequency = 48
		elections_allowed = yes
	}

	start_politics_input = yes

	# Party Popularities
	set_variable = { party_pop_array^1 = 0.006 } #conservatism
	set_variable = { party_pop_array^2 = 0.428 } #liberalism
	set_variable = { party_pop_array^3 = 0.01 } #socialism
	set_variable = { party_pop_array^4 = 0.036 } #Communist-State
	set_variable = { party_pop_array^5 = 0.34 } #anarchist_communism
	set_variable = { party_pop_array^15 = 0.015 } #oligarchism
	set_variable = { party_pop_array^17 = 0.003 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.11 } #neutral_Social
	set_variable = { party_pop_array^19 = 0.002 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.021 } #Nat_Populism

	### Ruling Party
	set_variable = { ruling_party = 2 } # liberalism
	add_to_array = { gov_coalition_array = 1 } # conservatism
	add_to_array = { gov_coalition_array = 15 } # oligarchism

	startup_politics = yes

	set_variable = { election_threshold = 0.01 } #no defined

	create_country_leader = {
		name = "Fernando Henrique Cardoso"
		picture = "Fernando_Henrique_Cardoso.dds"
		ideology = liberalism
		traits = {
			western_liberalism
			pro_american
			doctor
		}
	}
	set_variable = { term_limit = 2 }
	set_variable = { current_term = 2 }

	recruit_character = BRA_gleuber_vieira
	recruit_character = BRA_francisco_roberto_de_albuquerque
	recruit_character = BRA_enzo_peri
	recruit_character = BRA_sergio_gitirana_florencio_chagasteles
	recruit_character = BRA_roberto_de_guimaraes_carvalho
	recruit_character = BRA_julio_soares_de_moura_neto
	recruit_character = BRA_luiz_carlos_da_silva_bueno
	recruit_character = BRA_juniti_saito
	recruit_character = BRA_jose_carlos_de_nardi
	recruit_character = BRA_laerte_de_souza_santos
	recruit_character = BRA_ademir_sobrinho
	recruit_character = BRA_raul_botelho
	recruit_character = BRA_oswaldo_de_jesus_ferreira
	recruit_character = BRA_kleber_nunes_de_vasconcellos
	recruit_character = BRA_hertz_pires_do_nascimento
	recruit_character = BRA_jorge_roberto_lopes_fossi
	recruit_character = BRA_marcelo_arantes_guedon
	recruit_character = BRA_victor_cardoso_gomes
	recruit_character = BRA_liseo_zampronio

	if = {
		limit = {
			has_dlc = "La Resistance"
		}
		create_intelligence_agency = {
			name = "Brazilian Intelligence Agency (ABIN)"
			icon = GFX_intelligence_agency_logo_bra
		}
		set_country_flag = MD_skip_treasury_cost
		upgrade_intelligence_agency = upgrade_form_department
		upgrade_intelligence_agency = upgrade_establish_cyber_operations_division
		clr_country_flag = MD_skip_treasury_cost
	}


	# Relation Starting Configuration (moved from on_startup)
	add_opinion_modifier = { target = HAM modifier = HAM_Not_A_Recognized_country }
	add_opinion_modifier = { target = CUB modifier = sanctions }
	add_relation_modifier = { target = USA modifier = USA_World_Economical_Relations }
	add_relation_modifier = { target = SOV modifier = SOV_World_Economical_Relations }
	add_relation_modifier = { target = CHI modifier = CHI_World_Economical_Relations }
	add_relation_modifier = { target = FRA modifier = FRA_World_Economical_Relations }
	add_relation_modifier = { target = GER modifier = GER_World_Economical_Relations }
	add_relation_modifier = { target = ENG modifier = ENG_World_Economical_Relations }
	add_relation_modifier = { target = SPR modifier = SPR_World_Economical_Relations }
	add_relation_modifier = { target = ITA modifier = ITA_World_Economical_Relations }
	add_relation_modifier = { target = UKR modifier = UKR_world_economical_relations }
	add_relation_modifier = { target = ISR modifier = ISR_World_Economical_Relations }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists_Trade }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists_Trade }
}

2017.1.1 = {    
	set_variable = { industrial_conglomerates_opinion = 80 }
	set_variable = { labour_unions_opinion = 20 }
	set_variable = { farmers_opinion = 80 } 
	clr_country_flag = generic_election_killswitch

	add_opinion_modifier = { target = JAP modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = JAP modifier = large_commercial_relations }
	add_opinion_modifier = { target = KOR modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = KOR modifier = large_commercial_relations }
	add_opinion_modifier = { target = RAJ modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = RAJ modifier = large_commercial_relations } 

	set_technology = {  
		night_vision_2 = 1 

		support_weapons2 = 1 
		tandem_charge_warheads = 1
		support_weapons3 = 1 

		special_forces_tech_2 = 1 
  
		infantry_weapons_5 = 1 

		cnc_equipment_2 = 1
		cnc_equipment_3 = 1 

		land_drone_equipment_type = 1
		land_drone_equipment_1 = 1 
 
		Heavy_Anti_tank_1 = 1
		Heavy_Anti_tank_2 = 1
		Anti_tank_1 = 1
		AT_upgrade_2 = 1 
		Anti_tank_2 = 1 
   
		util_vehicle_4 = 1
		util_vehicle_5 = 1    

		microprocessors = 1
		computing2 = 1 
		computing3 = 1 
		computing4 = 1 
		artificial_intelligence_1 = 1 
		genetics_2 = 1 

		construction1 = 1 
	}
	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = {
			decryption2 = 1
			decryption3 = 1
			decryption4 = 1
			encryption2 = 1
			encryption3 = 1
			encryption4 = 1
		}
	} 
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }
		set_technology = {
			IFV_1 = 1
			IFV_2 = 1
			IFV_3 = 1
		}
	}

	# Naval Technology Set 
	set_technology = { 
		corvette_hull_1 = 1
		corvette_hull_2 = 1
		corvette_hull_3 = 1
		corvette_hull_4 = 1
		corvette_hull_5 = 1
		frigate_hull_1 = 1
		frigate_hull_2 = 1
		frigate_hull_3 = 1
		frigate_hull_4 = 1
		destroyer_hull_1 = 1
		destroyer_hull_2 = 1
		destroyer_hull_3 = 1
		cruiser_hull_1 = 1
		helicopter_operator_hull_1 = 1
		helicopter_operator_hull_2 = 1
		carrier_hull_1 = 1
		attack_submarine_hull_1 = 1
		attack_submarine_hull_2 = 1
		attack_submarine_hull_3 = 1
		attack_submarine_hull_4 = 1
		missile_submarine_hull_1 = 1
		aircraft_carrier_engineering = 1
		aircraft_heli_engineering_1 = 1
		aircraft_heli_engineering_2 = 1
		tech_submarine_engineering_1 = 1
		tech_naval_systems_engineering = 1   
	} 
	#Brazilian Guarantees
	give_guarantee = ARG
	give_guarantee = PAR
	give_guarantee = URG

	### Economy
	set_variable = { var = debt value = 1736 }
	set_variable = { var = int_investments value = 218 }
	set_variable = { var = treasury value = 367 }
	set_variable = { var = corporate_tax_rate value = 15 }
	set_variable = { var = population_tax_rate value = 22 }

	set_popularities = {
		democratic = 0.0
		communism = 44.9
		fascism = 0.0
		neutrality = 0.0
		nationalist = 55.1
	}
	set_politics = {
		ruling_party = communism
		last_election = "2014.10.26"
		election_frequency = 48
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0 } #conservatism
	set_variable = { party_pop_array^2 = 0 } #liberalism
	set_variable = { party_pop_array^3 = 0 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0.449 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.551 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 5 }

	startup_politics = yes

	create_country_leader = {
		name = "Michel Temer"
		picture = "Michel_Temer.dds"
		ideology = anarchist_communism
		traits = {
			emerging_anarchist_communism
		}
	}
	set_variable = { current_term = 1 } 
} 